package com.demo.springcloud.service;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author :chenjie
 * @date :Created 2022/11/3 21:26
 */
@Component
public class PaymentFallbackService implements PaymentHystrixService{

    @Override
    public String payment_OK(Integer id) {
        return "PaymentHystrixService fall back-paymentInfo_OK,O(T_T)O";
    }

    @Override
    public String payment_TimeOut(Integer id) {
        return "PaymentHystrixService fall back-paymentInfo_TimeOut,O(T_T)O";
    }
}
